export * from './http';
export * from './pathToRegexp';
export * from './oauth2'
export * from './oauth2-token'
export * from './querystring';
export * from './mock';
import OAuth2ClientDefault from './oauth2-client'

export var OAuth2Client = OAuth2ClientDefault;
//获取返回结果字符串
export var responseText = async response => {
    var text = response.text;
    if(text instanceof Promise){
        text = await text;
    }
    return text;
}
